import './globals.css'
import AuthProvider from "@/app/auth/Provider";
import NavBar from "@/app/components/NavBar";
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import "@radix-ui/themes/styles.css"
import {Container, Theme, ThemePanel} from "@radix-ui/themes"
import "./theme-config.css"
import React from "react";

const inter = Inter({ subsets: ['latin'],variable:"--font-inter" })

export const metadata: Metadata = {
  title: 'Create Next App',
  description: 'Generated by create next app',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en" suppressHydrationWarning={true}>
      <body className={inter.variable} >
      <Theme appearance="light" accentColor="jade">
          <AuthProvider>
              <NavBar/>
              <main className={"p-5"}>
                  <Container>
                      {children}
                  </Container>
              </main>
          </AuthProvider>

          {/*<ThemePanel/>*/}
      </Theme>
    </body>
    </html>
  )
}
